package com.yupi.project.handler;

import com.yupi.project.model.AuthenticatorResult;
import com.yupi.project.model.ProtectedRequest;
import com.yupi.project.security.SecurityVerificationHandler;
import org.springframework.stereotype.Component;

import java.util.Arrays;
import java.util.List;

/**
 * @description: TODO：黑名单功能
 * @author SummerBird
 * @date 2024/3/8 18:02
 * @version 1.0
 */
@Component
public class BlackListHandler implements SecurityVerificationHandler {

    private List<String> IS_BLACK = Arrays.asList();

    @Override
    public AuthenticatorResult auth(ProtectedRequest protectedRequest) {
        // TODO：黑名单可以从数据库中读出来
        return AuthenticatorResult.success();
    }

    @Override
    public int getOrder() {
        return 5;
    }
}
